<template>
  <!-- 员工管理页面 -->
  <el-menu class="el-menu-demo"
          mode="horizontal" default-active="0"
          @select="handleSelect">
    <el-menu-item v-for="(value, key, index) in f"
                  @click="clickMenuItem(index, value)"
                  :index="index">
      {{key}}
    </el-menu-item>
  </el-menu>
  <div>
    <router-view></router-view>
  </div>

</template>

<script>
  export default {
    name: "Management",
    data() {
      return {
        f: {
          '入职管理': 'induction',
          '转正管理': 'becomefullmember',
          '离职管理': 'quit'
        }
      }
    },
    methods: {
      clickMenuItem(index, path) {
        this.$router.push({
          path,
        });
      }
    },
  }
</script>

<style scoped>
  .el-menu {
    position: relative;
    top: -20px;
    height: 38px;
  }
</style>